import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      component: () => import('../views/AboutView.vue'),
    },
    //登录
    {
      path: '/Login',
      component: () => import('../views/User/Login.vue'),
    },
    //排房添加
    {
      path: '/PaiRoomAdd',
      component: () => import('../views/PaiRoom/PaiRoomAdd.vue'),
    },
     //排房显示
     {
      path: '/PaiRoomList',
      component: () => import('../views/PaiRoom/PaiRoomList.vue'),
    },
     //排房详情
     {
      path: '/PaiRoomXiangqing',
      component: () => import('../views/PaiRoom/PaiRoomXiangqing.vue'),
    },
    //房型添加
    {
      path: '/RoomTypeAdd',
      component: () => import('../views/RoomType/RoomTypeAdd.vue'),
    },
    //房型显示
    {
      path: '/RoomTypeList',
      component: () => import('../views/RoomType/RoomTypeList.vue'),
    },
   
    //房号添加
    {
      path: '/RoomNumberAdd',
      component: () => import('../views/RoomNumber/RoomNumberAdd.vue'),
    },
    //房号添加
    {
      path: '/RoomNumberList',
      component: () => import('../views/RoomNumber/RoomNumberList.vue'),
    },
    //房号修改
    {
      path: '/RoomNumberUpdate',
      component: () => import('../views/RoomNumber/RoomNumberUpdate.vue'),
    },
  ],
})

export default router
